package com.mymvpproject.model;

import com.mymvpproject.base.User;

/**
 * Created by 1 on 2017/5/16.
 */

public class LoginModelImpl implements LoginModel {

    @Override
    public void login(User user, OnLoginListener onLoginListener) {
        if (user.getUsername().equals("1234") && user.getPassword().equals("1234")){
            onLoginListener.loginSuccess("登录成功！");
        }else {
            onLoginListener.LoginFaild("登录失败！");
        }
    }
}
